package com.wjc.server.dto;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

public class UserDto {

    /**
     * id
     */
        private Long id;
    /**
     * 登录名
     */
        
        @Length(min=0,max = 50,message = "登录名字符长度过长")
        private String loginName;
    /**
     * 昵称
     */
        
        
        @Length(min=0,max = 50,message = "昵称字符长度过长")
        private String name;
    /**
     * 密码
     */
        
        @NotBlank(message = "密码不能为空")
        @Length(min=0,max = 32,message = "密码字符长度过长")
        private String password;


        private String imageCodeToken;

        private String imageCode;

    public String getImageCodeToken() {
        return imageCodeToken;
    }

    public void setImageCodeToken(String imageCodeToken) {
        this.imageCodeToken = imageCodeToken;
    }

    public String getImageCode() {
        return imageCode;
    }

    public void setImageCode(String imageCode) {
        this.imageCode = imageCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    @Override
    public String toString() {
        return "UserDto{" +
                "id=" + id +
                ", loginName='" + loginName + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", imageCodeToken='" + imageCodeToken + '\'' +
                ", imageCode='" + imageCode + '\'' +
                '}';
    }

}